﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="AdminPage.aspx.cs" Inherits="FilmManagement2.WebPage.AdminPage" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title></title>
    <script language="javascript" type="text/javascript">
        function accountjava() {
            document.getElementById('account').style.display = "";
            document.getElementById('film').style.display = "none";
            document.getElementById('studio').style.display = "none";
        }
        function filmjava() {
            document.getElementById('account').style.display = "none";
            document.getElementById('film').style.display = "";
            document.getElementById('studio').style.display = "none";
        }
        function studiojava() {
            document.getElementById('account').style.display = "none";
            document.getElementById('film').style.display = "none";
            document.getElementById('studio').style.display = "";
        }

    </script>
    <style type="text/css" >
        #form1
        {
            width:900px;
            height:550px;
            margin:40px 40px 40px 40px;
        }
    #top
    {
   
     height:100px;    
    }
    #top #top_l
    {
        width:600px; 
          height:100px;   
        float:left;
        background-color:Silver;
        font-size:69px;
        color:Blue;
        
    }
    #top #top_r
    {
        margin-left:1px;
         width:298px;
         height:100px;  
          float:left; 
        background-color:Yellow;
            
    }
 

    #left
    {
        width:148px;
        float:left;
        height:448px;
          border-top:1px solid black;
        border-bottom:1px solid black;
        border-left:1px solid black;
        border-right:1px solid black;
        background-color:Silver;   
    }
    #left_account
    {
        border-bottom:1px solid black;
        width:148px;
        height:80px; 
  
    }
    #left_film
    {
         border-bottom:1px solid black;
        width:148px;
        height:80px;
     }
     #left_studio
     {
         
           border-bottom:1px solid black;
        width:148px;
        height:80px;}
    #right
    {
        height:448px;
        margin-left:1px;
        width:748px;
        float:left;
        background-color:Silver;
    }
    #studio_1
    {
        height:70px;
        width:747px;    
    }
    #studio_1_but
    {
         height:45px;
         width:200px;
         margin-top:25px;
         margin-left:33px;
         float:left;
    }
      #studio_2
    {
        height:55px;
        width:747px;    
    }
    #studio_2_lbl
    {
       height:45px;
       width:200px;
       margin-left:280px;
       margin-top:5px;  
     }
      #studio_3
    {
        height:290px;
        width:747px;    
        border:1px solid black;
    }
    #studio_3_l
    {
         height:290px;
         width:372px;
         border-right:1px solid black;    
         float:left;
    }
    #studio_3_2
    {
        height:290px;
         width:372px;
          float:left;
    }
    #inputfilm
    {
        height:448px;
        width:374px;
        float:left;
    }
    #updatefilm
    {
        height:440px;
        width:374px;
        float:left;    
    }
    #GoHome
    {
      margin:20px 50px   
     }
      
    </style>
</head>
<body>
    <form id="form1" runat="server">
    <div id="top">
    <div id="top_l">
    你好: <asp:Label ID="Label1"  Font-Size="65px" runat="server" Text="Label"></asp:Label>
    </div>
    <div id="top_r">

      
     <div id="GoHome">   
         <asp:Button ID="Button2" Font-Bold="true" runat="server" Text="Home" 
             Height="45px" Width="92px" onclick="Button2_Click" />
             
             </div>
     

        
    </div>
    

    </div>

    <div id="left">
    <div id="left_account" >
     <asp:Button ID="accountbut" runat="server" 
            Text="账号管理" Font-Bold="True" Font-Size="X-Large" Height="79px" 
            Width="148px" onclick="accountbut_Click"   />
    </div>
       
    <div id="left_film">  
        <asp:Button ID="filmbut" runat="server" 
            Text="电影管理" Font-Bold="True" Font-Size="X-Large" Height="79px" 
            Width="148px" onclick="filmbut_Click"  /></div>
    <div id="left_studio">  
        <asp:Button ID="studiobut" runat="server" 
            Text="放映厅管理" Font-Bold="True" Font-Size="X-Large" Height="79px" 
            Width="148px" onclick="studiobut_Click"  /></div>
    </div>
   
    <div id="right">
     <div id="account"  style="display:none">注册账号:<br />
     用户名:<asp:TextBox ID="txtAccountID" runat="server"></asp:TextBox><br />
     密码：<asp:TextBox ID="txtAccountPS" runat="server" TextMode="Password"></asp:TextBox><br />
     确认密码:<asp:TextBox ID="txtAccountPSCON" runat="server" TextMode="Password"></asp:TextBox><br />
         <asp:Button ID="subAccountBut" runat="server" Text="Button" 
             onclick="subAccountBut_Click" />
     </div>
     <div id="film" >
     <div id="inputfilm">增加电影<br />
     FilmName:<asp:TextBox ID="inputfilmnametxt" runat="server"></asp:TextBox><br />
     LeaderActor:<asp:TextBox ID="inputfilmleaderactortxt" runat="server"></asp:TextBox><br />
     Details:<asp:TextBox ID="inputdetailstxt" runat="server"></asp:TextBox><br />
     Picture:<asp:FileUpload ID="inputfilmpicturefileupload" runat="server" />
         <br />
         Pirces: <asp:TextBox ID="inputprcetxt" runat="server"></asp:TextBox>
         <asp:RangeValidator ID="RangeValidator2" runat="server" 
             ControlToValidate="inputprcetxt" ErrorMessage="请输入0-200的数字" MaximumValue="200" 
             MinimumValue="0" Type="Double"></asp:RangeValidator>
         <br />
        

         <asp:Button ID="inputfilmsubbut" runat="server" Text="增加" 
             onclick="inputfilmsubbut_Click" />
     </div>
     <div id="updatefilm">电影列表:<br />
         <asp:GridView ID="GridView1" runat="server" AllowPaging="True"  
             AutoGenerateColumns="False" DataKeyNames="FilmId" DataSourceID="SqlDataSource4" 
             PageSize="3" Height="81px" 
             onselectedindexchanged="GridView1_SelectedIndexChanged" Width="228px">
             <Columns>
                 <asp:BoundField DataField="FilmName" HeaderText="FilmName" 
                     SortExpression="FilmName" />
                 <asp:BoundField DataField="LeadActors" HeaderText="LeadActors" 
                     SortExpression="LeadActors" />
                 <asp:BoundField DataField="Details" HeaderText="Details" 
                     SortExpression="Details" />
                 <asp:BoundField DataField="Price" HeaderText="Price" 
                     SortExpression="Price" />
              <asp:BoundField DataField="FilmId" HeaderText="FilmId" InsertVisible="False" 
                     ReadOnly="True" SortExpression="FilmId" />
             </Columns>
         </asp:GridView>
         <asp:SqlDataSource ID="SqlDataSource4" runat="server" 
             ConnectionString="<%$ ConnectionStrings:FilmManageMent2ConnectionString %>" 
             
             SelectCommand="SELECT [FilmName], [LeadActors], [Details], [Price], [FilmId] FROM [Film]"></asp:SqlDataSource>
         <asp:SqlDataSource ID="SqlDataSource1" runat="server" 
             ConnectionString="<%$ ConnectionStrings:FilmManageMent2ConnectionString %>" 
             SelectCommand="SELECT [StudioTwoId] FROM [MovieStudioTwo]">
         </asp:SqlDataSource>
        您要修改的电影ID是：<asp:ListBox ID="FilmID" runat="server" AutoPostBack="True" 
             onselectedindexchanged="FilmID_SelectedIndexChanged"></asp:ListBox>
        <br />
        <br />YourSelecteFilmID:<asp:TextBox ID="updateselectfilmIDtxt" runat="server" 
             Width="55px" ReadOnly="True"></asp:TextBox>

         <br />
     FilmName:<asp:TextBox ID="updatefilmnametxt" runat="server"></asp:TextBox><br />
     LeaderActor:<asp:TextBox ID="updateleaderactortxt" runat="server"></asp:TextBox><br />
     Details:<asp:TextBox ID="updatedetailtxt" runat="server"></asp:TextBox>
         <br />
         Prices:<asp:TextBox ID="updatepricetxt" runat="server"></asp:TextBox>
         <asp:RangeValidator ID="RangeValidator1" runat="server" 
             ControlToValidate="updatepricetxt" ErrorMessage="请输入0-200的数字" MaximumValue="200" 
             MinimumValue="0" Type="Double"></asp:RangeValidator>
         <br />
     ChangePicture:<asp:FileUpload ID="updatechangepicfileupload" runat="server" />
         <br />

         <asp:Button ID="Button1" runat="server" Text="修改" onclick="Button1_Click" 
             />
     </div>
     
     </div>
        
     <div id="studio"  style="display:none">
     <div id="studio_1">
     <div id="studio_1_but">
         <asp:Button ID="StudioOneBut" Font-Bold="true" Height="44px" width="198px" 
             runat="server" Text="StudioOne" onclick="StudioOneBut_Click" />
     </div>
       <div id="studio_1_but">
         <asp:Button ID="StudioTwoBut" Font-Bold="true" Height="44px" width="198px" 
               runat="server" Text="StudioTwo" onclick="StudioTwoBut_Click" />
     </div>
       <div id="studio_1_but">
         <asp:Button ID="StudioThreeBut" Font-Bold="true" Height="44px" width="198px" 
               runat="server" Text="StudioThree" onclick="StudioThreeBut_Click" />
     </div>
     </div>
     <div id="studio_2">
     <div id="studio_2_lbl">
         <asp:Label ID="StudioSelectedlbl" Font-Bold="true" Height="35px" width="150px" runat="server" Text="" ></asp:Label>
       
     </div>
     </div>
     <div id="studio_3">
     <div id="studio_3_l">
      <asp:Label ID="ModifyStudioIdlbl" runat="server" Text="StudioId:"></asp:Label>
         <asp:DropDownList ID="DropDownList1" runat="server" 
             DataSourceID="SqlDataSource2" DataTextField="StudioOneId" 
             DataValueField="StudioOneId" AutoPostBack="True" 
             onselectedindexchanged="DropDownList1_SelectedIndexChanged">
         </asp:DropDownList>
         <asp:SqlDataSource ID="SqlDataSource2" runat="server" 
             ConnectionString="<%$ ConnectionStrings:FilmManageMent2ConnectionString %>" 
             SelectCommand="SELECT [StudioOneId] FROM [MovieStudioOne]">
         </asp:SqlDataSource>
         <asp:DropDownList ID="DropDownList2" runat="server" 
             DataSourceID="SqlDataSource1" DataTextField="StudioTwoId" 
             DataValueField="StudioTwoId" AutoPostBack="True" 
             onselectedindexchanged="DropDownList2_SelectedIndexChanged">
         </asp:DropDownList>
         <asp:DropDownList ID="DropDownList3" runat="server" 
             DataSourceID="SqlDataSource3" DataTextField="StudioThreeId" 
             DataValueField="StudioThreeId" AutoPostBack="True" 
             onselectedindexchanged="DropDownList3_SelectedIndexChanged">
         </asp:DropDownList>
         <asp:SqlDataSource ID="SqlDataSource3" runat="server" 
             ConnectionString="<%$ ConnectionStrings:FilmManageMent2ConnectionString %>" 
             SelectCommand="SELECT [StudioThreeId] FROM [MovieStudioThree]">
         </asp:SqlDataSource>
         <br />
         <asp:Label ID="FilmNamelbl1" runat="server" Text="FilmName:"></asp:Label>
         <asp:Label ID="FilmNamelbl2" runat="server" Text="Label"></asp:Label>
         <br />
           <asp:Label ID="StartTimelbl" runat="server" Text="StartTime:"></asp:Label>
              <asp:TextBox ID="StartTimetxt" runat="server"></asp:TextBox>
               <br />
           <asp:Label ID="EndTimelbl" runat="server" Text="EndTime:"></asp:Label>
              <asp:TextBox ID="EndTimetxt" runat="server"></asp:TextBox>
              <br />
             &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
             <asp:ListBox ID="SeatStatus1" runat="server"></asp:ListBox>
               &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
               <asp:ListBox ID="SeatStatus2" runat="server"></asp:ListBox>
               <br />
               <br />
     &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
     <asp:Button ID="UpdateBut" runat="server" Font-Bold="true" Text="Modify" 
             onclick="UpdateBut_Click" />    
     </div>        
     <div id="studio_3_2">
     
         FilmID:<asp:DropDownList ID="DropDownList4" runat="server" 
             DataSourceID="SqlDataSource5" DataTextField="FilmId" DataValueField="FilmId">
         </asp:DropDownList>
         <asp:SqlDataSource ID="SqlDataSource5" runat="server" 
             ConnectionString="<%$ ConnectionStrings:FilmManageMent2ConnectionString %>" 
             SelectCommand="SELECT [FilmId] FROM [Film]"></asp:SqlDataSource>
         <br />
         TimeMode:[年.月.日] [小时] [分钟]<br />
         <br />
         StartTime:<asp:TextBox 
             ID="AddStartTimetxt1" runat="server" Width="81px"></asp:TextBox>
         <asp:DropDownList ID="StarTimeDPH" runat="server" Height="22px" Width="38px">
             <asp:ListItem>0</asp:ListItem>
             <asp:ListItem>1</asp:ListItem>
             <asp:ListItem>2</asp:ListItem>
             <asp:ListItem>3</asp:ListItem>
             <asp:ListItem>4</asp:ListItem>
             <asp:ListItem>5</asp:ListItem>
             <asp:ListItem>6</asp:ListItem>
             <asp:ListItem>7</asp:ListItem>
             <asp:ListItem>8</asp:ListItem>
             <asp:ListItem>9</asp:ListItem>
             <asp:ListItem>10</asp:ListItem>
             <asp:ListItem>11</asp:ListItem>
             <asp:ListItem>12</asp:ListItem>
             <asp:ListItem>13</asp:ListItem>
             <asp:ListItem>14</asp:ListItem>
             <asp:ListItem>15</asp:ListItem>
             <asp:ListItem>16</asp:ListItem>
             <asp:ListItem>17</asp:ListItem>
             <asp:ListItem>18</asp:ListItem>
             <asp:ListItem>19</asp:ListItem>
             <asp:ListItem>20</asp:ListItem>
             <asp:ListItem>21</asp:ListItem>
             <asp:ListItem>22</asp:ListItem>
             <asp:ListItem>23</asp:ListItem>
         </asp:DropDownList>
         &nbsp;:<asp:DropDownList ID="StarTimeDPM" runat="server" Height="21px" 
             Width="39px">
             <asp:ListItem>0</asp:ListItem>
             <asp:ListItem>1</asp:ListItem>
             <asp:ListItem>2</asp:ListItem>
             <asp:ListItem>3</asp:ListItem>
             <asp:ListItem>4</asp:ListItem>
             <asp:ListItem>5</asp:ListItem>
             <asp:ListItem>6</asp:ListItem>
             <asp:ListItem>7</asp:ListItem>
             <asp:ListItem>8</asp:ListItem>
             <asp:ListItem>9</asp:ListItem>
             <asp:ListItem>10</asp:ListItem>
             <asp:ListItem>11</asp:ListItem>
             <asp:ListItem>12</asp:ListItem>
             <asp:ListItem>13</asp:ListItem>
             <asp:ListItem>14</asp:ListItem>
             <asp:ListItem>15</asp:ListItem>
             <asp:ListItem>16</asp:ListItem>
             <asp:ListItem>17</asp:ListItem>
             <asp:ListItem>18</asp:ListItem>
             <asp:ListItem>19</asp:ListItem>
             <asp:ListItem>20</asp:ListItem>
             <asp:ListItem>21</asp:ListItem>
             <asp:ListItem>22</asp:ListItem>
             <asp:ListItem>23</asp:ListItem>
             <asp:ListItem>24</asp:ListItem>
             <asp:ListItem>25</asp:ListItem>
             <asp:ListItem>26</asp:ListItem>
             <asp:ListItem>27</asp:ListItem>
             <asp:ListItem>28</asp:ListItem>
             <asp:ListItem>29</asp:ListItem>
             <asp:ListItem>30</asp:ListItem>
             <asp:ListItem>31</asp:ListItem>
             <asp:ListItem>32</asp:ListItem>
             <asp:ListItem>33</asp:ListItem>
             <asp:ListItem>34</asp:ListItem>
             <asp:ListItem>35</asp:ListItem>
             <asp:ListItem>36</asp:ListItem>
             <asp:ListItem>37</asp:ListItem>
             <asp:ListItem>38</asp:ListItem>
             <asp:ListItem>39</asp:ListItem>
             <asp:ListItem>40</asp:ListItem>
             <asp:ListItem>41</asp:ListItem>
             <asp:ListItem>42</asp:ListItem>
             <asp:ListItem>43</asp:ListItem>
             <asp:ListItem>44</asp:ListItem>
             <asp:ListItem>45</asp:ListItem>
             <asp:ListItem>46</asp:ListItem>
             <asp:ListItem>47</asp:ListItem>
             <asp:ListItem>48</asp:ListItem>
             <asp:ListItem>49</asp:ListItem>
             <asp:ListItem>50</asp:ListItem>
             <asp:ListItem>51</asp:ListItem>
             <asp:ListItem>52</asp:ListItem>
             <asp:ListItem>53</asp:ListItem>
             <asp:ListItem>54</asp:ListItem>
             <asp:ListItem>55</asp:ListItem>
             <asp:ListItem>56</asp:ListItem>
             <asp:ListItem>57</asp:ListItem>
             <asp:ListItem>58</asp:ListItem>
             <asp:ListItem>59</asp:ListItem>
         </asp:DropDownList>
&nbsp;<br />
         
         <br />
         EndTime:<asp:TextBox 
             ID="AddEndTimetxt1" runat="server" Width="81px"></asp:TextBox>
         <asp:DropDownList ID="EndTimeDPH" runat="server" Height="16px" Width="43px">
             <asp:ListItem>0</asp:ListItem>
             <asp:ListItem>1</asp:ListItem>
             <asp:ListItem>2</asp:ListItem>
             <asp:ListItem>3</asp:ListItem>
             <asp:ListItem>4</asp:ListItem>
             <asp:ListItem>5</asp:ListItem>
             <asp:ListItem>6</asp:ListItem>
             <asp:ListItem>7</asp:ListItem>
             <asp:ListItem>8</asp:ListItem>
             <asp:ListItem>9</asp:ListItem>
             <asp:ListItem>10</asp:ListItem>
             <asp:ListItem>11</asp:ListItem>
             <asp:ListItem>12</asp:ListItem>
             <asp:ListItem>13</asp:ListItem>
             <asp:ListItem>14</asp:ListItem>
             <asp:ListItem>15</asp:ListItem>
             <asp:ListItem>16</asp:ListItem>
             <asp:ListItem>17</asp:ListItem>
             <asp:ListItem>18</asp:ListItem>
             <asp:ListItem>19</asp:ListItem>
             <asp:ListItem>20</asp:ListItem>
             <asp:ListItem>21</asp:ListItem>
             <asp:ListItem>22</asp:ListItem>
             <asp:ListItem>23</asp:ListItem>
         </asp:DropDownList>
&nbsp;:<asp:DropDownList ID="EndTimeDPM" runat="server" Height="16px" Width="40px">
             <asp:ListItem>0</asp:ListItem>
             <asp:ListItem>1</asp:ListItem>
             <asp:ListItem>2</asp:ListItem>
             <asp:ListItem>3</asp:ListItem>
             <asp:ListItem>4</asp:ListItem>
             <asp:ListItem>5</asp:ListItem>
             <asp:ListItem>6</asp:ListItem>
             <asp:ListItem>7</asp:ListItem>
             <asp:ListItem>8</asp:ListItem>
             <asp:ListItem>9</asp:ListItem>
             <asp:ListItem>10</asp:ListItem>
             <asp:ListItem>11</asp:ListItem>
             <asp:ListItem>12</asp:ListItem>
             <asp:ListItem>13</asp:ListItem>
             <asp:ListItem>14</asp:ListItem>
             <asp:ListItem>15</asp:ListItem>
             <asp:ListItem>16</asp:ListItem>
             <asp:ListItem>17</asp:ListItem>
             <asp:ListItem>18</asp:ListItem>
             <asp:ListItem>19</asp:ListItem>
             <asp:ListItem>20</asp:ListItem>
             <asp:ListItem>21</asp:ListItem>
             <asp:ListItem>22</asp:ListItem>
             <asp:ListItem>23</asp:ListItem>
             <asp:ListItem>24</asp:ListItem>
             <asp:ListItem>25</asp:ListItem>
             <asp:ListItem>26</asp:ListItem>
             <asp:ListItem>27</asp:ListItem>
             <asp:ListItem>28</asp:ListItem>
             <asp:ListItem>29</asp:ListItem>
             <asp:ListItem>30</asp:ListItem>
             <asp:ListItem>31</asp:ListItem>
             <asp:ListItem>32</asp:ListItem>
             <asp:ListItem>33</asp:ListItem>
             <asp:ListItem>34</asp:ListItem>
             <asp:ListItem>35</asp:ListItem>
             <asp:ListItem>36</asp:ListItem>
             <asp:ListItem>37</asp:ListItem>
             <asp:ListItem>38</asp:ListItem>
             <asp:ListItem>39</asp:ListItem>
             <asp:ListItem>40</asp:ListItem>
             <asp:ListItem>41</asp:ListItem>
             <asp:ListItem>42</asp:ListItem>
             <asp:ListItem>43</asp:ListItem>
             <asp:ListItem>44</asp:ListItem>
             <asp:ListItem>45</asp:ListItem>
             <asp:ListItem>46</asp:ListItem>
             <asp:ListItem>47</asp:ListItem>
             <asp:ListItem>48</asp:ListItem>
             <asp:ListItem>49</asp:ListItem>
             <asp:ListItem>50</asp:ListItem>
             <asp:ListItem>51</asp:ListItem>
             <asp:ListItem>52</asp:ListItem>
             <asp:ListItem>53</asp:ListItem>
             <asp:ListItem>54</asp:ListItem>
             <asp:ListItem>55</asp:ListItem>
             <asp:ListItem>56</asp:ListItem>
             <asp:ListItem>57</asp:ListItem>
             <asp:ListItem>58</asp:ListItem>
             <asp:ListItem>59</asp:ListItem>
         </asp:DropDownList>
         <br />
         <br />
     
         <br />
         <br />
         <br />
         <br />
         <br />

     
        
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
         <asp:Button ID="StudioAdd" runat="server" Font-Bold="true" Text="Add" 
             Width="58px" Height="24px" onclick="StudioAdd_Click" />

     
     </div>
       
     </div>
     </div>
    </div>
  
    </form>
</body>
</html>
